<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>03_美团1</title>
</head>
<body>
<!--
1. 难度系数: ★★★
2. 技术点:
  1). 作用域与作用域链
  2). 变量查找
-->
<script type="text/javascript">

  var fn = function () {
    console.log(fn)
  }
  fn() // 输出函数

  var obj = {
    fn2: function () {
      console.log(fn2)
    }
  }
  obj.fn2() //报错 右查询失败
</script>
</body>
</html>
